<?php


App::uses('Crud', 'Model');

class Exam extends Crud
{  
    
    public function getForRestart( $wsConfigId, $userId )
    {
        $exam = NULL;
        $data = array(
            'conditions' => array(
                'user_id' => $userId,
                'workstation_config_id' => $wsConfigId
            )
        );
        return $this->find('first',$data);
    }
    
}